package com.anmai.crawler1.entity;

import com.anmai.crawler1.base.entity.BaseBean;

import java.io.Serializable;
import java.util.Date;

public class BussinessBean extends BaseBean {
    private Integer id;

    private Integer areaId;

    private String bussinessName;

    private String url;

    private Date createTime;

    private Date updateTime;

    private Double lat;//纬度

    private Double lng;//经度

    private Integer status;//-1:报错；0：未收集；1：收集成功

    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    public Double getLng() {
        return lng;
    }

    public void setLng(Double lng) {
        this.lng = lng;
    }

    public Integer getStatus() {
        return (status == null) ? 0 : status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }


    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAreaId() {
        return areaId;
    }

    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    public String getBussinessName() {
        return bussinessName;
    }

    public void setBussinessName(String bussinessName) {
        this.bussinessName = bussinessName == null ? null : bussinessName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BussinessBean{" +
                "id=" + id +
                ", areaId=" + areaId +
                ", bussinessName='" + bussinessName + '\'' +
                ", url='" + url + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", lat=" + lat +
                ", lng=" + lng +
                ", status=" + status +
                '}';
    }
}